export type ColunmType = HTABLE.TableColumns<API.User>
export const baseColunm: ColunmType[] = [
    {
        name: '姓名',
        index: 'name',
        width: 200
    }, {
        name: '性别',
        index: 'gender',
        searchProps: {
            component: 'Select',
            props: {
                options: [
                    { label: '男', value: 1 },
                    { label: '女', value: 0 },
                ]
            }
        },
        customRender: ({ row }) => {
            return (
                <span>{row.gender === 1 ? '男' : '女'}</span>
            )
        },
        width: 200
    }, {
        name: '年龄',
        index: 'age',
        hideSearch: true,
        width: 200
    }, {
        name: '邮箱',
        index: 'email',
        width: 300
    }, {
        name: 'QQ',
        index: 'qq',
        width: 300
    }, {
        name: '密码',
        index: 'password',
        hideSearch: true,
        width: 300
    }
]